package com.woniu.product.client;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniu.product.client.result.CategoryiInfo;
import com.woniu.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "categoryQueryClient",name="product")
public interface CategoryQueryClient {
    /**
     * 查询商品类别
     * @return
     */
    @GetMapping("selCategory")
    public Result<List<CategoryiInfo>> selCategory() throws JsonProcessingException;
}
